<%@page import="com.google.appengine.api.users.UserServiceFactory"%>
<%@page import="com.google.appengine.api.users.UserService"%>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<html>
<head><title>Valós Kilométer Dev</title></head>
<body>
	<a href="/user/vehicles">Járműveim</a>
	<br>
	<%
     UserService userService = UserServiceFactory.getUserService();
     if (!userService.isUserLoggedIn()) {
   %>
      <a href="/openidlogin.jsp">Belépés</a>
   <% } else { %>
      <a href="<%=userService.createLogoutURL("/")%>">Kilépés</a>
   <%
     }
   %>
</body>
</html>